package com.cyzy.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cyzy.pojo.Menu;
import com.cyzy.pojo.RoleMenu;

import java.util.List;

public interface MenuService extends IService<Menu> {


    List<Menu> selectMenuList(String username);

    List<RoleMenu> selectRoleMenuList();

    List<RoleMenu> searchworkersAll(String username, String role, Integer state);

    List<Menu> selectAllMenuList();

    List<Menu> searchMenuAll(String menuName, Integer menuState);

    List<Menu> getMenuAllList();

    Menu selectMenu(String menuName);

    Menu selectMenuById(Integer menuId);

    int updateManage(Integer menuId, String menuName, String path, Integer menuState, String name, String component, String icon);

    int deleteState(Integer menuId, Integer menuState);

    int deleteStateByIds(List<String> ids, String state);
}
